package com.baseproject.helper;

/**
 * 回调到本页面时需要刷新本页面数据，或者说为了刷新本页面才去的下一级页面
 * 默认行为，如果不设置purpose，就在回调时刷新
 */

public class JumpCallbackHelper {

    public final static String PURPOSE_REFRESH = "refresh";

    public final static String PURPOSE_GOTO_BOOKSHELF = "goToBookshelf";

    public final static String PURPOSE_ADDTO_BOOKSHELF = "addToBookshelf";

    public final static String PURPOSE_ORDER_BAG = "orderBag";

    /**
     * 跳转到下一级页面的原因
     */
    private String mPurpose = "";

    public void setPurpose(String purpose) {
        mPurpose = purpose;
    }

    public String getPurpose() {
        return mPurpose;
    }
}
